Skip to content

Auto-enable Vulkan in builds, and update docs for Vulkan backend#20525

Draft
Reubend wants to merge 2 commits into
pytorch:mainfrom
Reubend:vulkan-compatibility-wheels
Draft

Auto-enable Vulkan in builds, and update docs for Vulkan backend#20525
Reubend wants to merge 2 commits into
pytorch:mainfrom
Reubend:vulkan-compatibility-wheels

Conversation

@Reubend

@Reubend Reubend commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Following up from #20138, this enables the Vulkan backend in source builds when its deps are present, mirroring what we do for CUDA, QNN, and OpenVINO.

It also updates the docs for the Vulkan backend to reflect the latest platform support.

fixes:#20140

Changes

  • Added is_vulkan_available(), based on the existing is_cuda_available()
  • Vulkan will be enabled in builds when the above returns true and when the submodules are present (making sure that those aren't uninitialized)
  • Updated the docs to reflect the fact that the Vulkan backend can now run on Linux and Windows

Testing

I tested these changes on a Linux machine with an A100. I'm relying on CI for Windows testing.

cc @SS-JIA @manuelcandales @digantdesai @cbilgin

@pytorch-bot pytorch-bot Bot added the module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ label Jun 26, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20525

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 2 Unclassified Failures

As of commit f951bdc with merge base bb28350 (image):

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 26, 2026
@Reubend Reubend added the release notes: vulkan Changes to the Vulkan backend delegate label Jun 26, 2026
@pytorch pytorch deleted a comment from github-actions Bot Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ release notes: vulkan Changes to the Vulkan backend delegate

Projects

Status: To triage

Development

Successfully merging this pull request may close these issues.

1 participant